package cn.yhbk.web.modules.manager.Pojo.DTO.Comment;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TbCommentDto {

    @ApiModelProperty("评论ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("学生ID")
    @TableField("student_id")
    private Long studentId;

    @ApiModelProperty("学生姓名")
    @TableField("sname")
    private String sname;

    @ApiModelProperty("学号")
    @TableField("sno")
    private String sno;

    @ApiModelProperty("评论内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("公告ID")
    @TableField("notice_id")
    private Long noticeId;

    @ApiModelProperty("父评论ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("状态（1：正常，2：删除）")
    @TableField("status")
    private Byte status;

}
